package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "kinds")
public class Kinds extends BaseEntity implements Serializable {
    /**
     * 分类编号
     */
    @TableId(value = "KINDS_ID", type = IdType.AUTO)
    private Integer kindsId;

    /**
     * 分类名称
     */
    @TableField(value = "KINDS_NAME")
    private String kindsName;

    /**
     * 排序
     */
    @TableField(value = "KINDS_SORT")
    private Integer kindsSort;

    /**
     * 创建时间
     */
    @TableField(value = "KINDS_CREATE_TIME")
    private Date kindsCreateTime;

    /**
     * 状态
     */
    @TableField(value = "KIND_STATUS")
    private Byte kindStatus;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY")
    private Integer createBy;

    /**
     * 更新人
     */
    @TableField(value = "UPDATE_BY")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;


    private Admin createAdmin;


    private Admin updateAdmin;

    private static final long serialVersionUID = 1L;

    public static final String COL_KINDS_ID = "KINDS_ID";

    public static final String COL_KINDS_NAME = "KINDS_NAME";

    public static final String COL_KINDS_SORT = "KINDS_SORT";

    public static final String COL_KINDS_CREATE_TIME = "KINDS_CREATE_TIME";

    public static final String COL_KIND_STATUS = "KIND_STATUS";

    public static final String COL_CREATE_BY = "CREATE_BY";

    public static final String COL_UPDATE_BY = "UPDATE_BY";

    public static final String COL_UPDATE_TIME = "UPDATE_TIME";
}
